<!DOCTYPE html>
<html ng-app="myApp">
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script src="../angular.js"></script>
	</head>
	<body>
		<div ng-controller="MyController">
			<h1>Time:{{ clock | date:'yyyy-mm-dd hh:mm:ss' }}</h1>
		</div>
		<script type="text/javascript">
			var app = angular.module("myApp", []);
			app.controller("MyController", function($scope, $timeout) {
				var updateClock = function() {
					$scope.clock = new Date();
					$timeout(function() {
						updateClock();
					}, 1000);
				};
				updateClock();
			});
		</script>
	</body>

</html>